<template>
    <div class="errorTip">
      {{errMsg}}
    </div>
</template>

<script>
    export default {
      name: "error-tip",
      props: {
        errMsg: {
          type: String,
          default: null
        }
      }
    }
</script>

<style scoped lang="scss">
  @import "../../common/sass/mixin";
  .errorTip{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    @include font-dpr(28px);
  }
</style>
